package com.fas.hehe.system.model;

import java.io.Serializable;
import java.util.List;

import nl.bitwalker.useragentutils.DeviceType;

import com.fas.core.constant.Constants;

/**
 * 
 * <p>
 * Title: LoginUser.java
 * </p>
 * <p>
 * Description: 登录用户信息
 * </p>
 * <p>
 * Copyright: Copyright (c) Knight
 * </p>
 * 
 * @author Yi Xiaoping
 * @date 2015年10月15日 下午5:31:47
 * @version V1.0
 *
 */
public class LoginUser implements Serializable {

	/**
	 * @Fields serialVersionUID : TODO
	 */

	private static final long serialVersionUID = 1L;
	private Long sid; // 员工ID;
	private String account; // 账号;
	private Long corpid; // 商家ID;
	private List<String> appidList;// 商家APP ID
	private String curAppid;// 当前使用APP ID
	private String mobileno; // 员工手机号;
	private String name; // 员工姓名;
	private boolean superUser;// 是否超级账号
	private DeviceType loginDeviceType;// 登录设备类型

	public Long getSid() {
		return sid;
	}

	public void setSid(Long sid) {
		this.sid = sid;
	}

	public String getAccount() {
		return account;
	}

	public void setAccount(String account) {
		this.account = account;
	}

	public Long getCorpid() {
		return corpid;
	}

	public void setCorpid(Long corpid) {
		this.corpid = corpid;
		if (this.getCorpid() != null
				&& Constants.SUPER_CORPID.intValue() == this.getCorpid()
						.intValue()) {
			this.superUser = true;
		} else {
			this.superUser = false;
		}
	}

	public String getMobileno() {
		return mobileno;
	}

	public void setMobileno(String mobileno) {
		this.mobileno = mobileno;
	}

	public String getName() {
		return name;
	}

	public DeviceType getLoginDeviceType() {
		return loginDeviceType;
	}

	public void setLoginDeviceType(DeviceType loginDeviceType) {
		this.loginDeviceType = loginDeviceType;
	}

	public boolean isSuperUser() {
		return superUser;
	}

	public void setSuperUser(boolean superUser) {
		this.superUser = superUser;
	}

	public void setName(String name) {
		this.name = name;
	}

	public List<String> getAppidList() {
		return appidList;
	}

	public void setAppidList(List<String> appidList) {
		this.appidList = appidList;
	}

	public String getCurAppid() {
		return curAppid;
	}

	public void setCurAppid(String curAppid) {
		this.curAppid = curAppid;
	}
}
